
package se.sll.service.catalogue.capacity.api.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;


/**
 * A single product reference
 * 
 */
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "capacity",
    "hsaID",
    "name"
})
public class Product {

    /**
     * a collection of capacities
     * 
     */
    @JsonProperty("capacity")
    @Valid
    private List<Capacity> capacity = new ArrayList<Capacity>();
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("hsaID")
    @NotNull
    private String hsaID;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("name")
    @NotNull
    private String name;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    /**
     * a collection of capacities
     * 
     * @return
     *     The capacity
     */
    @JsonProperty("capacity")
    public List<Capacity> getCapacity() {
        return capacity;
    }

    /**
     * a collection of capacities
     * 
     * @param capacity
     *     The capacity
     */
    @JsonProperty("capacity")
    public void setCapacity(List<Capacity> capacity) {
        this.capacity = capacity;
    }

    public Product withCapacity(List<Capacity> capacity) {
        this.capacity = capacity;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The hsaID
     */
    @JsonProperty("hsaID")
    public String getHsaID() {
        return hsaID;
    }

    /**
     * 
     * (Required)
     * 
     * @param hsaID
     *     The hsaID
     */
    @JsonProperty("hsaID")
    public void setHsaID(String hsaID) {
        this.hsaID = hsaID;
    }

    public Product withHsaID(String hsaID) {
        this.hsaID = hsaID;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The name
     */
    @JsonProperty("name")
    public String getName() {
        return name;
    }

    /**
     * 
     * (Required)
     * 
     * @param name
     *     The name
     */
    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    public Product withName(String name) {
        this.name = name;
        return this;
    }

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public Product withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}
